<%@ page import="com.zhen.utils.JdbcUtils" %>
<%@ page import="com.zhen.pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Object uid = session.getAttribute("UID");
    String sql="select `username`,`password`,`name` from `user` where  id = ?";
    User u = JdbcUtils.select(sql, User.class, uid);
%>
<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java实训团队协作简单案例 - 个人信息编辑页面</title>
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="assets/vendors/font-awesome-4.7.0/css/font-awesome.min.css" />
    <link rel="stylesheet" href="assets/css/core.css" />
    <link rel="stylesheet" href="assets/css/index.css" />

    <link rel="stylesheet" href="assets/css/resume.css" />
</head>

<body>
<jsp:include page="/WEB-INF/tpl/zhen/header.jsp"></jsp:include>
    <section class="container">
        <jsp:include page="/WEB-INF/tpl/zhen/left.jsp"></jsp:include>
        <div class="main-right">
            <h3>个人信息编辑页面</h3>

            <form action="/zhen/UpdateServlet" method="post">
                账号：<input type="text" name="username" value="<%=u.getUsername()%>">
                名称：<input type="text" name="name" value="<%=u.getName()%>">
                密码：<input type="text" name="name" >
                <button type="submit">保存</button>
            </form>



        </div>
    </section>
</body>

</html>